﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Light.Utility
{
    /// <summary>
    /// 操作执行结果类
    /// </summary>
    [Serializable]
    public class OperateResult
    {

        /// <summary>
        /// 是否成功
        /// </summary>
        public bool IsSucced { get; set; }
        /// <summary>
        /// 提示消息
        /// </summary>
        public string Message { get; set; }

    }

    /// <summary>
    /// 封装一个方法，该方法只采用一个参数并且返回值类型为OperateResult
    /// </summary>
    /// <typeparam name="T"></typeparam>
    /// <param name="obj"></param>
    /// <returns></returns>
    public delegate OperateResult OperateDelegate<T>(T obj);
}
